home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / planetkit / amigaexe / irc / install_amirc < prev    next >
Text File  |  1996-03-28  |  22KB  |  546 lines

  1. ;******************************************************************************
  2. ;        ____           ______ ______  ______
  3. ;       / __ \         /_  __// __  / / __  /
  4. ;      / /_/ /_   _     / /  / /_/ / / /  -'
  5. ;     / __  // \_/ \   / /  /   __/ / /
  6. ;    / / / // /__/ /__/ /_ / /\ \  / /___
  7. ;   /_/ /_//_/  /_//_____//_/  \_\ \____/
  8. ;
  9. ; $VER: 1.10e (March-27-1996) 
  10. ; Changes, suggestions or problems: rcr@netcom.com
  11. ; If you wish to use any part of this installer you must ask.
  12. ;
  13. ; AmIRC Installer by Robert C. Reiswig ©1995,1996 
  14. ;******************************************************************************
  15.  
  16. ;*** System Stuff ***
  17. (set cpu (database "cpu"))  (set vblank (database "vblank"))
  18. (set graphmem (database "graphics-mem")) (set totmem (database "total-mem"))
  19. (set osver (/ (getversion "LIBS:version.library") 65536))
  20. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  21. (set fastmem (- totmem graphmem))
  22.  
  23. (if (= osver 37) (set workbench "2.0")) (if (= osver 38) (set workbench "2.1"))
  24. (if (= osver 39) (set workbench "3.0")) (if (= osver 40) (set workbench "3.1"))
  25. (if (= osver 41) (set workbench "4.0")) 
  26.  
  27. (set cpu (database "cpu"))
  28. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  29. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  30. (if (= cpu 68040) (set #cpu 4)) 
  31. (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 5) )
  32.  
  33. (set vernum1 (getversion "AmIRC"))
  34. (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  35. (set AmIRCver (cat ver1 "." rev1))
  36.  
  37. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  38. (set lan 0)
  39.  
  40. (if (= "english" lanfound) (set lan 0))  (if (= "deutsch"  lanfound) (set lan 1))
  41. (if (= "français" lanfound) (set lan 2)) (if (= "Español" lanfound) (set lan 3))
  42. (if (= "Svenska" lanfound) (set lan 4))  (if (= "nederlands" lanfound) (set lan 5))
  43. (if (= "italiano" lanfound) (set lan 6)) (if (= "norsk"  lanfound) (set lan 7))
  44. (if (= "português" lanfound) (set lan 8))
  45.  
  46. (set #English    "English")  (set #Deutsch    "Deutsch")
  47. (set #Français   "Français") (set #Español    "Español")
  48. (set #Svenska    "Svenska")  (set #Nederlands "Nederlands")
  49. (set #Italiano   "Italiano") (set #Norsk      "Norsk")    
  50. (set #Português  "Português")
  51.  
  52. (set mfound 0) (set newicon1 1) 
  53. (set keeper 1) (set firsttime 0)
  54.  
  55. ;********************************************************************
  56. ; English Strings
  57. ;********************************************************************
  58. (set #about (cat "\n\nWelcome to AmIRC " AmIRCver "\n\n\n\nCopyright © 1995, 1996 by\n\nOliver Wagner\n<owagner@lsd.wupper.de>\n\nhttp://www.vapor.com/AmIRC/\nftp://ftp.vapor.com/support/AmIRC/") )
  59. (set #nomui (cat "\n\nAmIRC uses Magic User Interface (MUI).\n\nThe installer has not found MUI: to be assigned, "
  60.                  "therefore you AmIRC will not work correctly.  You will need to install "
  61.                  "MUI before running AmIRC."
  62.             )
  63. )
  64. (set #whereAmIRC "Where do you wish to install AmIRC. A directory called 'AmIRC' will be created if one is not there. If a copy of AmIRC is found it will be backed up.")
  65. (set muiver "No Version Installed")
  66. (set #newermui "\nAmIRC needs version 3.0 or higher of MUI installed to work correctly.\n\nNow would be a good time to Upgrade!\n\nYou can find mui33usr.lha on Aminet in dev/gui\n\nIt looks like you have: \n\n")
  67. (set #need-os "\n\nThe 68020 version of AmIRC needs version 3.0 or higher of the Amiga OS installed to work correctly.\n\n It looks like you have: \n\n")
  68. (set #000used "\n\nThe 68000 version will be installed.") 
  69. (set #filethere1 "\n\nThe installer has found AmIRC version ")
  70. (set #filethere2 " at ")
  71. (set #filethere3 "\n\nThe file will be renamed to ")
  72. (set #filethere4 " and it will then be moved to ")
  73. (set #backuptoXXX "Back-UP to file named 'AmIRC")
  74. (set #copyover "Copy Over Old Version")
  75. (set #AmIRCfound "\nThe Installer has found a copy of AmIRC already installed. What do you want to do?\n")
  76. (set #askcpu "\nCPU Check: What CPU does the machine have that you are installing AmIRC on? The installer has found:\n")
  77. (set #newicon "\nDo you wish to copy over The AmIRC Icon from the archive? If you have any ToolTypes already set you should select no.\n")
  78. (set #nonewicon  "No  - ToolTypes already set.")
  79. (set #yesnewicon "Yes - Copy over Icon.")
  80. (set #pickicon "\nAmIRC has 3 different icons you can use choose from. Which one would you like to use?\n")
  81. (set #nomultiview (cat "The installer could not find multiview or you are running on a 2.x Amiga. "
  82.                        "The AmIRC Installer will let you choose between 3 different icon to use. Their "
  83.                        "names are:\n\n'AmIRC - Default'\n'AmIRC2 - Globe'\n'AmIRC3 - 4 Faces'\n\n"
  84.                        "You can use a picture viewer to look at the '3Icons.iff' to see the choices side-by-side, "
  85.                        "or you can just look in the drawer from where you are installing AmIRC from."
  86.                   )
  87. )
  88. (set #whatcat "\nSelect the AmIRC Language catalog you wish to install.\n")
  89. (set #wherecat "\nWhere do you wish to install the AmIRC Language Catalog? Default is ")
  90. (set #catnofind "Can not find this catalog in this AmIRC archive. You may need to get the complete archive from the support site.")
  91. (set #whatdocs "\nWhat AmIRC documentation would you like to install?\n")
  92. (set #wheredocs "Where would you like the AmIRC documentation you selected to be installed?")
  93. (set #nofounddocs "\n\nThe Docs that are listed below, from the ones that you selected,  were not found in the AmIRC archive. You may need to get the complete archive from the support site.")
  94. (set #whatrexx "What AREXX Commands would you like to install? They will be placed in ")
  95. (set #notinthisarc "(* = Not found in this archive.)")
  96. (set #rexxsize1 ". There is about ")
  97. (set #rexxsize2 "K total of AREXX scripts.\n")
  98. (set #rexx1 "Away        - Away/Back script")
  99. (set #rexx2 "Finger      - AmiTCP finger script")
  100. (set #rexx3 "Leave       - Leave a channel w/msg")
  101. (set #rexx4 "WallChop    - Message all Chops on a channel")
  102. (set #rexx5 "SendBrowser - Sends URLs to Broswers")
  103.  
  104. (set #whatsnd "\nWhat Sounds would you like to install? They will be placed in ")
  105. (set #sndsize1 ". There is about ")
  106. (set #sndsize2 "K total of Sound files.\n")
  107. (set #snd1 " Gost Set")
  108. (set #snd2 " Sandro Set")
  109. (set #snd3 " Smkn Set")
  110.  
  111. (set #whatsub "\nWhat Submissions would you like to install? They will be placed in ")
  112. (set #subsize1 ". There is about ")
  113. (set #subsize2 "K total of Submissions files.\n")
  114. (set #sub1 " Extra Icons")
  115. (set #sub2 " Extra ARexx Scripts")
  116. (set #sub3 " Toolmanager Animbrush")
  117.  
  118. (set #oktodelete1 "\nIs it ok to delete the older AmIRC binary so that the AmIRC Directory can be made?\n")
  119. (set #oktodelete2 "\nIs it ok to delete the older _renamed_ AmIRC binary so that the AmIRC Directory can be made?\n")
  120. (set #ifyoulike (cat "If you like AmIRC you might want to take a look at AmFTP.  It Includes the following:\n\nHigh speed asynchronous transfers for maximum efficiency, "
  121.                      "Batch download facility, Resume partially received files, FTP-Server Phonebook, Full ADT Support, Full ARexx support, Archie search engine, "
  122.                      "and much more!\n\nAmFTP can be found on Aminet in comm/tcp or\nhttp://www.vapor.com/AmFTP/"
  123.                 )
  124. )
  125. (set #byebye (cat "\nAmIRC Install Complete!\n\n" ))
  126. ;********************************************************************
  127. ; Hello
  128. ;********************************************************************
  129. (message #about)
  130. (welcome) 
  131.  
  132. ;********************************************************************
  133. ; MUI installed?
  134. ;********************************************************************
  135. (if (< (exists "mui:") 2)  (message #nomui) )
  136.  
  137. ;********************************************************************
  138. ; Ask where to put AmIRC & Make dir if needed
  139. ;********************************************************************
  140. (set Package (getassign "AmiTCP"))
  141. (if (= Package "") (set Package (getassign "Inet")) )
  142.  
  143. (set AmIRCdir  (askdir (prompt #whereAmIRC)
  144.                (help   #whereAmIRC)
  145.                     (default Package)
  146.                )  
  147. )
  148.  
  149. (set where AmIRCdir)
  150.  
  151. (if (= 1 (exists (tackon where "AmIRC") ) ) 
  152.   (
  153.     (set vernum1 (getversion (tackon where "AmIRC") ))
  154.     (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  155.     (set AmIRC_old (cat ver1 "." rev1))
  156.  
  157.     (message (cat #filethere1 ver1 "." rev1 #filethere2 where #filethere3 
  158.                   (cat "AmIRC" AmIRC_old) #filethere4 (tackon AmIRCdir "AmIRC") )
  159.     )
  160.     
  161.  
  162.     (copyfiles (source (tackon where "AmIRC"))
  163.                (dest where) 
  164.                (infos)
  165.                (newname (cat "AmIRC" AmIRC_old))
  166.     )
  167.     
  168.     (delete (tackon AmIRCdir "AmIRC") (prompt #oktodelete1) (help #oktodelete1) (confirm) (infos)) 
  169.     
  170.  
  171.     (if (< (exists (tackon AmIRCdir "AmIRC")) 2) (makedir (tackon AmIRCdir "AmIRC") (infos)) )    
  172.  
  173.     (copyfiles (source (tackon where (cat "AmIRC" AmIRC_old) ))
  174.                        (dest (tackon AmIRCdir "AmIRC")) 
  175.                        (infos)
  176.                
  177.     )
  178.  
  179.     (delete (tackon where (cat "AmIRC" AmIRC_old)) (prompt #oktodelete2) (help #oktodelete2) (confirm) (infos) ) 
  180.  
  181.     ;(set firsttime 1)
  182.  
  183.   )
  184. )
  185.  
  186. (if (< (exists (tackon AmIRCdir "AmIRC")) 2) (makedir (tackon AmIRCdir "AmIRC") (infos)) )
  187. (set where (tackon AmIRCdir "AmIRC"))
  188. (set @default-dest where)
  189.  
  190. ;********************************************************************
  191. ; Double Check on the CPU
  192. ;********************************************************************
  193. (set cpuPick (askchoice (choices "68000" "68010" "68020" "68030"
  194.                          "68040" "68060"
  195.                 )
  196.              (prompt #askcpu)
  197.                      (help   #askcpu)
  198.                    (default #cpu)
  199.       )
  200. )
  201.  
  202. ;********************************************************************
  203. ; Check for AmIRC020 requs
  204. ;********************************************************************
  205. (set ver 0)
  206. (if (exists "mui:mui") 
  207.  (
  208.   (set vernum (getversion "mui:mui") )
  209.   (set ver (/ vernum 65536)) (set rev (- vernum (* ver 65536) ) )
  210.  
  211.   (if (= ver 7) (set muiver "2.0") )   (if (= ver 8) (set muiver "2.1") )
  212.   (if (= ver 9) (set muiver "2.2") )   (if (= ver 10) (set muiver "2.3") )
  213.   (if (= ver 11) (set muiver "3.0") )  (if (= ver 12) (set muiver "3.1") )
  214.   (if (= ver 13) (set muiver "3.2") )  (if (= ver 14) (set muiver "3.3") )
  215.   (if (= ver 15) (set muiver "3.4") )
  216.  )
  217. )
  218.  
  219. (if (< ver 11)   ( (message (cat #newermui muiver))   (set cpuPick 0) ))
  220. (if (< osver 39) ( (message (cat #need-os workbench #000used)) (set cpuPick 0) ))
  221.  
  222. ;********************************************************************
  223. ; Check for old & backup
  224. ;********************************************************************
  225. (if (exists (tackon where "AmIRC")) 
  226.   (
  227.       (set vernum1 (getversion (tackon where "AmIRC") ))
  228.       (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  229.       (set AmIRC_old (cat ver1 "." rev1))
  230.  
  231.       (set keeper  (askchoice (choices  (cat #backuptoXXX AmIRC_old "'")  #copyover)
  232.                      (prompt #AmIRCfound)
  233.                  (help   #AmIRCfound)
  234.                      (default 0)
  235.                )
  236.       )    
  237.  
  238.  
  239.       (if (= keeper 0)
  240.          (copyfiles (source (tackon where "AmIRC"))
  241.                      (dest where) 
  242.                      (infos)
  243.                      (newname (cat "AmIRC" AmIRC_old))
  244.          )
  245.       )          
  246.  
  247.       (set firsttime 1)
  248.     
  249.   )
  250. )
  251.  
  252. ;********************************************************************
  253. ; Copy over correct AmIRC and Icon if wanted
  254. ;********************************************************************
  255. (if ( > cpuPick 1)
  256.    (copyfiles (source "AmIRC020") (dest where) (optional "nofail") (newname "AmIRC") )
  257.  
  258.    (copyfiles (source "AmIRC") (dest where) (optional "nofail") )
  259. )
  260.  
  261. (if (= firsttime 0)  (copyfiles (source "AmIRC.info") (dest where) (optional "nofail") ) )
  262.  
  263.  
  264. (if (= keeper 0) 
  265.   (
  266.    (set newicon (askchoice (choices #yesnewicon #nonewicon)
  267.                            (prompt #newicon)
  268.                        (help   #newicon)
  269.                            (default 0)
  270.             )
  271.    )
  272.   
  273.    (if (= newicon 0) 
  274.      (copyfiles (source "AmIRC.info") (dest where)  (optional "nofail") )
  275.    )
  276.  
  277.   )
  278. )
  279.  
  280. (if (exists ("RegisterAmIRC"))
  281.  (copyfiles (source "RegisterAmIRC") (dest where)  (infos) (optional "nofail") )
  282. )
  283. ;********************************************************************
  284. ; Select and copy over Catalog
  285. ;********************************************************************
  286. (set catalog (askchoice (choices #English #Deutsch #Français #Español #Svenska #Nederlands #Italiano #Norsk #Português)
  287.                            (prompt #whatcat)
  288.                        (help   #whatcat)
  289.                            (default lan)
  290.              )
  291. )
  292.  
  293. (set #Português  "Português")
  294.  
  295. (if (= catalog 0) (set #lcat #English ))  (if (= catalog 1) (set #lcat #Deutsch))
  296. (if (= catalog 2) (set #lcat #Français))  (if (= catalog 3) (set #lcat #Español))
  297. (if (= catalog 4) (set #lcat #Svenska))   (if (= catalog 5) (set #lcat #Nederlands))
  298. (if (= catalog 6) (set #lcat #Italiano))  (if (= catalog 7) (set #lcat #Norsk))
  299. (if (= catalog 8) (set #lcat #Português))
  300.  
  301. (if (<> catalog 0)
  302.  (
  303.   (if (> (exists (cat "Catalogs/" #lcat "/AmIRC.catalog")) 0)
  304.     (
  305.       (set wherecat  (askchoice (choices (tackon where (cat "Catalogs/" #lcat)) (cat "Locale:Catalogs/" #lcat) )
  306.                                 (prompt (cat #wherecat (tackon where (cat "Catalogs/" #lcat)) "\n"))
  307.                             (help   #wherecat)
  308.                              (default 0)
  309.                      )  
  310.       )
  311.  
  312.       (if (= wherecat 1)
  313.         (
  314.          (if (< (exists "Locale:") 2) ( (makedir "sys:Locale") (makeassign "Locale" "sys:Locale") ) )
  315.          (if (< (exists "Locale:Catalogs") 2) (makedir "sys:Locale/Catalogs") )
  316.          (if (< (exists (cat "Locale:Catalogs/" #lcat)) 2) (makedir (cat "sys:Locale/Catalogs/" #lcat)) )
  317.          (copylib (source (cat "Catalogs/" #lcat "/AmIRC.catalog")) (dest (cat "sys:Locale/Catalogs/" #lcat)) )
  318.         )
  319.   
  320.         (
  321.          (if (< (exists (tackon where "Catalogs")) 2) (makedir (tackon where "Catalogs")) )
  322.          (if (< (exists (tackon where (cat "Catalogs/" #lcat)) ) 2) (makedir (tackon where (cat "Catalogs/" #lcat)) ) )
  323.          (copylib (source (cat "Catalogs/" #lcat "/AmIRC.catalog")) (dest (tackon where (cat "Catalogs/" #lcat)) ) (optional "nofail") )
  324.         )
  325.       )
  326.     )
  327.  
  328.     (message (cat "\nCatalogs/" #lcat "/AmIRC.catalog\n\n" #catnofind)) 
  329.   ) 
  330.    
  331.  
  332.  )
  333. )
  334.  
  335. ;********************************************************************
  336. ; Ask and and copy docs if wanted!
  337. ;********************************************************************
  338. (set nodocs 0)
  339.  
  340. (set docs (askoptions (choices "AmIRC.guide" "AmIRC.doc" "AmIRC.readme")
  341.               (prompt #whatdocs)
  342.                       (help #whatdocs)
  343.                   (default 7)
  344.       )
  345. )
  346.  
  347.  
  348.  
  349. (if (<> docs 0)
  350.  (
  351.    (set docsdir (askdir (prompt #wheredocs)
  352.                (help   #wheredocs)
  353.                     (default where)
  354.                 )  
  355.    )
  356.  
  357.    (if (> (exists "AmIRC.guide") 0) 
  358.     (if (IN docs 0) (copyfiles (source "AmIRC.guide") (dest docsdir) (infos) (optional "nofail") ) )
  359.     ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC.guide")) (set nodocs 1) )
  360.    )
  361.  
  362.    (if (> (exists "AmIRC.doc") 0) 
  363.     (if (IN docs 0) (copyfiles (source "AmIRC.doc") (dest docsdir) (infos) (optional "nofail") ) )
  364.     ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC.doc")) (set nodocs 1) )
  365.    )
  366.  
  367.    (if (> (exists "AmIRC.readme") 0) 
  368.     (if (IN docs 0) (copyfiles (source "AmIRC.readme") (dest docsdir) (infos) (optional "nofail") ) )
  369.     ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC.readme")) (set nodocs 1) )
  370.    )
  371.  
  372.    (if (= nodocs 1) (message #nofounddocs) ) 
  373.     
  374.  
  375.  )
  376. )
  377.  
  378. ;********************************************************************
  379. ; Ask and and copy AREXX stuff if wanted!
  380. ;********************************************************************
  381. (set size 0)
  382. (foreach "rexx" "#?.AMIRX"  (set size (+ size (getsize (tackon "rexx" @each-name)))) )
  383. (set sizek (/ size 1024))
  384.  
  385. (if (= (exists "rexx/away.AMIRX") 0)        (set #rexx1 (cat #rexx1 "*")) )         
  386. (if (= (exists "rexx/Finger.AMIRX") 0)      (set #rexx2 (cat #rexx2 "*")) )      
  387. (if (= (exists "rexx/Leave.AMIRX") 0)       (set #rexx3 (cat #rexx3 "*")) )       
  388. (if (= (exists "rexx/WallChop.AMIRX") 0)    (set #rexx4 (cat #rexx4 "*")) )    
  389. (if (= (exists "rexx/sendbrowser.amirx") 0) (set #rexx5 (cat #rexx5 "*")) ) 
  390.  
  391. (set arexx (askoptions (choices #rexx1 #rexx2 #rexx3 #rexx4 #rexx5)
  392.                (prompt (cat #whatrexx (tackon where "rexx") #rexxsize1 sizek #rexxsize2 #notinthisarc) )
  393.                        (help (cat #whatrexx (tackon where "rexx") #rexxsize1 sizek #rexxsize2 #notinthisarc) )
  394.                    (default 31)
  395.        )
  396. )
  397.  
  398. (if (<> arexx 0)
  399.  (
  400.   (set rexxdir (tackon where "rexx"))
  401.   (if (< (exists rexxdir) 2) (makedir rexxdir)  )
  402.   (if (AND (IN arexx 0) (exists "rexx/away.AMIRX"))     (copyfiles (source "rexx/away.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  403.   (if (AND (IN arexx 1) (exists "rexx/Finger.AMIRX"))    (copyfiles (source "rexx/Finger.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  404.   (if (AND (IN arexx 2) (exists "rexx/Leave.AMIRX"))    (copyfiles (source "rexx/Leave.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  405.   (if (AND (IN arexx 3) (exists "rexx/WallChop.AMIRX")) (copyfiles (source "rexx/WallChop.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  406.   (if (AND (IN arexx 4) (exists "rexx/sendbrowser.amirx")) (copyfiles (source "rexx/sendbrowser.amirx") (dest rexxdir) (infos) (optional "nofail") ) )
  407.  )
  408. )
  409.  
  410. ;********************************************************************
  411. ; Ask and and copy SOUND stuff if wanted!
  412. ;********************************************************************
  413. (if (> (exists "Sounds") 0)
  414.  (
  415.   (set size 0)
  416.   (foreach "Sounds" "Gost#?"  (set size (+ size (getsize (tackon "Sounds" @each-name)))) )
  417.   (set sizek-gost (/ size 1024))
  418.  
  419.   (set size 0)
  420.   (foreach "Sounds" "Sandro#?"  (set size (+ size (getsize (tackon "Sounds" @each-name)))) )
  421.   (set sizek-sandro (/ size 1024))
  422.  
  423.   (set size 0)
  424.   (foreach "Sounds" "SmKn#?"  (set size (+ size (getsize (tackon "Sounds" @each-name)))) )
  425.   (set sizek-smkn (/ size 1024))
  426.  
  427.   (set sizek (+ sizek-gost (+ sizek-sandro sizek-smkn) ) )
  428.  
  429.   (set snds (askoptions (choices (cat #snd1 " (" sizek-gost "K)")
  430.                                  (cat #snd2 " (" sizek-sandro "K)") 
  431.                                  (cat #snd3 " (" sizek-smkn "K)")
  432.                                  )
  433.                   (prompt (cat #whatsnd (tackon where "Sounds") #sndsize1 sizek #sndsize2) )
  434.                         (help (cat #whatsnd (tackon where "Sounds") #sndsize1 sizek #sndsize2) )
  435.                     (default 7)
  436.         )
  437.   )
  438.  
  439.   (if (<> snds 0)
  440.    (
  441.      (set snddir (tackon where "Sounds"))
  442.      (if (< (exists snddir) 2) (makedir snddir)  )
  443.  
  444.      (if (IN snds 0)
  445.        (foreach "Sounds" "Gost#?"
  446.           (copyfiles (source (tackon "Sounds" @each-name)) (dest snddir) (infos) (optional "nofail") ) 
  447.        )
  448.      )
  449.  
  450.      (if (IN snds 1)
  451.        (foreach "Sounds" "Sandro#?"
  452.          (copyfiles (source (tackon "Sounds" @each-name)) (dest snddir) (infos) (optional "nofail") ) 
  453.        )
  454.      )
  455.  
  456.      (if (IN snds 2)
  457.        (foreach "Sounds" "Smkn#?"
  458.          (copyfiles (source (tackon "Sounds" @each-name)) (dest snddir) (infos) (optional "nofail") ) 
  459.        )
  460.      )
  461.  
  462.    )
  463.   )
  464.  
  465.  
  466.  )
  467. )
  468.  
  469. ;********************************************************************
  470. ; Ask and and copy Submissions stuff if wanted!
  471. ;********************************************************************
  472. (if (> (exists "Submissions") 0)
  473.  (
  474.   (set size 0)
  475.   (foreach "Submissions" "#?.info"  (set size (+ size (getsize (tackon "Submissions" @each-name)))) )
  476.   (set sizek-info (/ size 1024))
  477.  
  478.   (set size 0)
  479.   (foreach "Submissions" "#?.AMIRX"  (set size (+ size (getsize (tackon "Submissions" @each-name)))) )
  480.   (set sizek-rexx (/ size 1024))
  481.  
  482.   (set size 0)
  483.   (foreach "Submissions" "#?.anmb"  (set size (+ size (getsize (tackon "Submissions" @each-name)))) )
  484.   (set sizek-tool (/ size 1024))
  485.  
  486.   (set sizek (+ sizek-info (+ sizek-rexx sizek-tool)))
  487.  
  488.  
  489.   (set sub (askoptions (choices (cat #sub1 " (" sizek-info "K)")
  490.                                 (cat #sub2 " (" sizek-rexx "K)") 
  491.                                 (cat #sub3 " (" sizek-tool "K)")
  492.                        )
  493.                   (prompt (cat #whatsub (tackon where "Submissions") #subsize1 sizek #subsize2) )
  494.                         (help (cat #whatsub (tackon where "Submissions") #subsize1 sizek #subsize2) )
  495.                     (default 7)
  496.         )
  497.   )
  498.  
  499.   (if (<> sub 0)
  500.    (
  501.      (set subdir (tackon where "Submissions"))
  502.      (if (< (exists subdir) 2) (makedir subdir)  )
  503.  
  504.      (if (IN sub 0)
  505.        (foreach "Submissions" "#?.info"
  506.           (copyfiles (source (tackon "Submissions" @each-name)) (dest subdir) (infos) (optional "nofail") ) 
  507.        )
  508.      )
  509.  
  510.      (if (IN sub 1)
  511.        (foreach "Submissions" "#?.AMIRX"
  512.           (copyfiles (source (tackon "Submissions" @each-name)) (dest subdir) (infos) (optional "nofail") ) 
  513.        )
  514.      )
  515.  
  516.      (if (IN sub 2)
  517.        (foreach "Submissions" "#?.anmb"
  518.           (copyfiles (source (tackon "Submissions" @each-name)) (dest subdir) (infos) (optional "nofail") ) 
  519.        )
  520.      )
  521.  
  522.  
  523.  
  524.  
  525.    )
  526.   )
  527.  
  528.  
  529.  
  530.  
  531.  )
  532. )
  533.  
  534. ;********************************************************************
  535. ; copy keyfile if there 
  536. ;********************************************************************
  537. (if (> (exists "AmIRC.Key") 0)
  538.  (copyfiles (source "AmIRC.Key") (dest where) (infos) (optional "nofail") ) 
  539. )
  540.  
  541. ;********************************************************************
  542. ; AmFTP Plug and End Bye 
  543. ;********************************************************************
  544. (message #ifyoulike)
  545. (exit #byebye)
  546.